package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {
		if (args.length == 1)
		{
			String str = args[0];
			for (int i = 0; i < str.length(); i++) {
				char charAtIndex = str.charAt(i);
				if (Character.isDigit(charAtIndex))
				{
					charAtIndex = '0';
				}
				switch (charAtIndex)
				{
				case '0':
					break;
				case '+':
					System.out.print("++");
					break;
				case '-':
					System.out.print("--");
					break;
				default:
					System.out.print(charAtIndex);						
				}
			}
		}
	}
}
